package com.weibo4j.api.req.relation;

import com.weibo4j.api.WeiboRequest;
import com.weibo4j.api.annotation.Param;
import com.weibo4j.api.response.relation.FriendShipResponse;
import com.weibo4j.api.util.RequestType;

public class FriendShipRequest extends WeiboRequest<FriendShipResponse>{
	
	private Long sourceId;
	
	private String sourceScreenName;
	
	private Long targetId;
	
	private String targetScreenName;

	@Param("source_id")
	public Long getSourceId() {
		return sourceId;
	}

	public void setSourceId(Long sourceId) {
		this.sourceId = sourceId;
	}

	@Param("source_screen_name")
	public String getSourceScreenName() {
		return sourceScreenName;
	}

	public void setSourceScreenName(String sourceScreenName) {
		this.sourceScreenName = sourceScreenName;
	}

	@Param("target_id")
	public Long getTargetId() {
		return targetId;
	}

	public void setTargetId(Long targetId) {
		this.targetId = targetId;
	}

	@Param("target_screen_name")
	public String getTargetScreenName() {
		return targetScreenName;
	}

	public void setTargetScreenName(String targetScreenName) {
		this.targetScreenName = targetScreenName;
	}

	@Override
	public RequestType requestType() {
		return RequestType.GET;
	}

	@Override
	public String baseUrl() {
		return "https://api.weibo.com/2/friendships/show.json";
	}

	@Override
	protected Class<FriendShipResponse> responseType() {
		return FriendShipResponse.class;
	}

}
